﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Comment.ascx.cs" Inherits="Controls_Comment" %>
<%@ Register Src="Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<uc1:Pager ID="pagerTop" runat="server" />
<asp:Repeater ID="RepComment" runat="server">
    <ItemTemplate>
        <div class="comment">
            <div style="font-weight:bold; background-color:#800000; color:#fff; padding:4px;">
            <div style="float:left; width:68%"><%#Eval("UserName") %></div>
            <div style="float:left; width:27%"><%#Eval("Date") %></div>
            <div style="float:left; width:5%; text-align:right"><%#"#"+Eval("RowNumber")%></div>
            <div style="clear:both"></div>
            </div>
            <p style="border:1px solid #eee; padding:8px; margin-top:4px; height:100px"><%#Eval("Comment") %></p>
        </div>
    </ItemTemplate>
</asp:Repeater>
<asp:Panel ID="pnComment" runat="server">
    <div class="comment">
        <asp:TextBox ID="txtComment" runat="server" MaxLength="1000" Rows="6" TextMode="MultiLine" Width="686px"></asp:TextBox>
        <asp:Button ID="btnSubmit" runat="server" Text="Comment" 
            onclick="btnSubmit_Click" style="float:right; margin-top:8px" />
    </div>
    <div style="clear:both"></div>
</asp:Panel>
<uc1:Pager ID="pagerBottom" runat="server" />
